package com.daka.vo.response;

import com.daka.entity.Group;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * Created by yangx
 * CreateTime: 2016/10/24 15:51
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class GroupResponseVo {
    private Long id;
    private String name;

    public static GroupResponseVo buildVO(Group group) {
        GroupResponseVo groupResponseVo = new GroupResponseVo();
        groupResponseVo.setId(group.getId());
        groupResponseVo.setName(group.getName());

        return groupResponseVo;
    }

}
